# $OpenBSD: Makefile,v 1.9 2017/04/23 22:24:30 sthen Exp $

COMMENT=		APC SmartUPS daemon

DISTNAME=		apcd-0.2
REVISION=		0
CATEGORIES=		sysutils
MASTER_SITES=		http://www.nazgul.ch/dev/

HOMEPAGE=		http://www.nazgul.ch/dev.html

MAINTAINER=		Marcus Glocker <marcus@nazgul.ch>

# BSD
PERMIT_PACKAGE_CDROM=	Yes

WANTLIB=		c curses

NO_TEST=		Yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/apcd/apcd ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/apcmon/apcmon ${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/apcd/apcd.8 ${PREFIX}/man/man8
	${INSTALL_MAN} ${WRKSRC}/apcmon/apcmon.8 ${PREFIX}/man/man8
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/apcd
	${INSTALL_DATA} ${WRKSRC}/apcd/apcd.conf \
	    ${PREFIX}/share/examples/apcd

.include <bsd.port.mk>
